home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmeDrawArrow.z
/
XmeDrawArrow
Wrap
Text File
|
1998-10-30
|
6KB
|
133 lines
XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww - Draws a Motif-style, three-dimensional arrow
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/DrawP.h>
vvvvooooiiiidddd XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww(
DDDDiiiissssppppllllaaaayyyy ****ddddiiiissssppppllllaaaayyyy,
DDDDrrrraaaawwwwaaaabbbblllleeee ddddrrrraaaawwwwaaaabbbblllleeee,
GGGGCCCC ttttoooopppp____ggggcccc,
GGGGCCCC bbbboooottttttttoooommmm____ggggcccc,
GGGGCCCC cccceeeennnntttteeeerrrr____ggggcccc,
PPPPoooossssiiiittttiiiioooonnnn xxxx,
PPPPoooossssiiiittttiiiioooonnnn yyyy,
DDDDiiiimmmmeeeennnnssssiiiioooonnnn wwwwiiiiddddtttthhhh,
DDDDiiiimmmmeeeennnnssssiiiioooonnnn hhhheeeeiiiigggghhhhtttt,
DDDDiiiimmmmeeeennnnssssiiiioooonnnn sssshhhhaaaaddddoooowwww____tttthhhhiiiicccckkkknnnneeeessssssss,
uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr ddddiiiirrrreeeeccccttttiiiioooonnnn);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww draws a Motif-style arrowhead surrounded by
Motif-style shadows. The routine always draws the arrowhead
as an equilateral triangle.
This function does not draw the tail of the arrow.
Furthermore, this function does not allow you to draw a
broad range of arrow shapes (for example, you cannot draw a
curved arrow). You can, however, control the direction that
the arrowhead faces.
Four of the arguments to XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww (_x, _y, _w_i_d_t_h, and
_h_e_i_g_h_t) describe a bounding box. The bounding box encloses
not only the arrowhead but its shadows as well. XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww
centers the arrowhead within the bounding box.
_d_i_s_p_l_a_y Specifies the display on which the arrow is to be
rendered.
_d_r_a_w_a_b_l_e Specifies the drawable in which the arrow is to be
rendered. (Typically, this drawable is a widget
window.)
_t_o_p__g_c Specifies the graphics context of the shadow that
is generally above and to the left of the
triangular arrowhead.
_b_o_t_t_o_m__g_c Specifies the graphics context of the shadow that
is generally below and to the right of the
triangular arrowhead.
Page 1 (printed 10/24/98)
XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmeeeeDDDDrrrraaaawwwwAAAArrrrrrrroooowwww((((3333XXXX))))
_c_e_n_t_e_r__g_c Specifies the graphics context of the arrow
itself.
If _c_e_n_t_e_r__g_c is _N_U_L_L, the diamond will not be
filled, but the shadow will still be drawn.
_x Specifies the leftmost point of the bounding box.
_y Specifies the top of the bounding box.
_w_i_d_t_h Specifies the width of the bounding box.
_h_e_i_g_h_t Specifies the height of the bounding box.
_s_h_a_d_o_w__t_h_i_c_k_n_e_s_s
Specifies the thickness of the arrow's shadows in
pixels. At Motif Release 2.0, the only supported
values of _s_h_a_d_o_w__t_h_i_c_k_n_e_s_sare 0 (no shadow), 1, or
2.
_d_i_r_e_c_t_i_o_n Specifies the direction of the arrow. The
direction must be one of the following values:
XXXXmmmmAAAARRRRRRRROOOOWWWW____RRRRIIIIGGGGHHHHTTTT, XXXXmmmmAAAARRRRRRRROOOOWWWW____LLLLEEEEFFFFTTTT, XXXXmmmmAAAARRRRRRRROOOOWWWW____UUUUPPPP, or
XXXXmmmmAAAARRRRRRRROOOOWWWW____DDDDOOOOWWWWNNNN.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmAAAArrrrrrrroooowwwwBBBBuuuuttttttttoooonnnn(3).
Page 2 (printed 10/24/98)